import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import ageModule from "./age";
import nameModule from "./name"
export default new Vuex.Store({
  state: { // 根模块root模块
    sex:1
  },
  // 拆分模块
  modules: {
    ageModule,
    nameModule
  }
})
